/**
 * 
 */
import java.awt.event.WindowAdapter;

import javax.swing.JComponent;
import javax.swing.JFrame;

/**
 * @author Simon
 *
 */
public class GUI extends WindowAdapter
{
	JFrame frame;
	CreateFaculty cf;
	
	public void init()
	{
		frame = new MainFrame(this);
		frame.setVisible(true);
	
	}
	
	public static void main(String[]args)
	{
		GUI gui = new GUI();
		gui.init();
	}

	public void makeNewWindow() 
	{
        JFrame pb = new JFrame("Fetching Data...");
        pb.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        pb.setAlwaysOnTop(true);

        //Create and set up the content pane.
        JComponent newContentPane = new ProgressBar();
        newContentPane.setOpaque(true); //content panes must be opaque
        pb.setContentPane(newContentPane);

        //Display the window.
        pb.pack();
        pb.setVisible(true);
	}

	public void addFaculty()
	{
		JFrame faculty = new CreateFaculty();
		faculty.setAlwaysOnTop(true);
		faculty.setVisible(true);
	}
	public void quit(MainFrame mainFrame) {
		// TODO Auto-generated method stub
		
	}
}

